<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>for-in循环</title>
		<script>
			var b=["apple","茄子","huanggua","西红柿","大白菜"];
			for(let i in b){
				//i是下标
				//console.log(i,"=",b[i]);
				console.log(`${i}=${b[i]}`);
				
			}
			console.log(">>>>>>>>>>>>>>>>>>>>>>>>>");
			for(let i of b){
				//i是数组的每一个值
				console.log(i);
			}
			
		</script>
	</head>
	<body>
	</body>
</html>